package com.hzj;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Testxxxx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Calendar calendar = Calendar.getInstance();
		calendar.set(2000, 7, 26);
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
		System.out.println(simpleDateFormat.format(calendar.getTime()));
		System.out.println(calendar.get(Calendar.DAY_OF_YEAR));
		// 246

	}

}
